<html><head><title>SetXMLEncoding</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">SetXMLEncoding()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#006666"><b>SetXMLEncoding</b></font>(#XML, Encoding)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Changes the text encoding used for exporting/saving the given XML tree. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#XML</i></td>
<td width="90%"> 
The XML to use. 

</td></tr>
<tr><td><i>Encoding</i></td>
<td> 
It can be one of the following values: 
<pre><font face="Courier New, Courier, mono"size="2">   <font color="#924B72">#PB_Ascii</font>
   <font color="#924B72">#PB_Unicode</font> (UTF16)
   <font color="#924B72">#PB_UTF8</font>
</font></pre>
This only affects the <a href="exportxml.html">exporting</a>/<a href="savexml.html">saving</a> of the tree. 
The data in the #XML object is always stored in the PB string format (Ascii or Unicode depending on 
the <a href="../reference/ide_compiler.html">compiler option</a>). So a unicode executable can safely change the encoding to 
<font color="#924B72">#PB_Ascii</font> for saving and then back to something else without loosing any information in the tree in memory. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>See Also</b></p><blockquote>

<a href="exportxml.html">ExportXML()</a>, <a href="savexml.html">SaveXML()</a>, <a href="getxmlencoding.html">GetXMLEncoding()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=setxmlattribute.html>SetXMLAttribute()</a> - <a href=index.html>XML Index</a> - <a href=setxmlnodename.html>SetXMLNodeName()</a> ->

</body></html>